Normalization of floating point operations in a programmable integrated circuit device

ABSTRACT

A programmable integrated circuit device is programmed to normalize multiplication operations by examining the input or output values to determined the likelihood of overflow or underflow and then to adjust the input or output values accordingly. The examination of the inputs can include an examination of the number of adder stages feeding into the inputs, as well as a count of leading bits ahead of the first significant bit. Adjustment of an input can include shifting the mantissa by the leading bit count and adjusting the exponent accordingly, while adjustment of the output can include shifting the mantissa by the sum of the leading bit counts of the inputs and adjusting the exponent accordingly. Or the output can be examined to find its leading bit count and the output then can be adjusted by shifting the mantissa by the leading bit count and adjusting the exponent accordingly.

CROSS REFERENCE TO RELATED APPLICATION

This is a continuation of, commonly-assigned U.S. patent application Ser. No. 12/048,379, filed Mar. 14, 2008, now U.S. Pat. No. 8,244,789, which is hereby incorporated by reference herein in its entirety.

BACKGROUND OF THE INVENTION

This invention relates to performing floating point arithmetic operations in programmable integrated circuit devices such as, e.g., programmable logic devices (PLDs). More particularly, this invention relates to normalization techniques for floating point operations.

As applications for which PLDs are used increase in complexity, it has become more common to design PLDs to include specialized processing blocks in addition to blocks of generic programmable logic resources. Such specialized processing blocks may include a concentration of circuitry on a PLD that has been partly or fully hardwired to perform one or more specific tasks, such as a logical or a mathematical operation. A specialized processing block may also contain one or more specialized structures, such as an array of configurable memory elements. Examples of structures that are commonly implemented in such specialized processing blocks include: multipliers, arithmetic logic units (ALUs), barrel-shifters, various memory elements (such as FIFO/LIFO/SIPO/RAM/ROM/CAM blocks and register files), AND/NAND/OR/NOR arrays, etc., or combinations thereof.

One particularly useful type of specialized processing block that has been provided on PLDs is a digital signal processing (DSP) block, which may be used to process, e.g., audio signals. Such blocks are frequently also referred to as multiply-accumulate (“MAC”) blocks, because they include structures to perform multiplication operations, and sums and/or accumulations of multiplication operations.

For example, PLDs sold by Altera Corporation, of San Jose, Calif., as part of the STRATIX® family, include DSP blocks, each of which may include four 18-by-18 multipliers. Each of those DSP blocks also may include adders and registers, as well as programmable connectors (e.g., multiplexers) that allow the various components to be configured in different ways. In each such block, the multipliers can be configured not only as four individual 18-by-18 multipliers, but also as four smaller multipliers, or as one larger (36-by-36) multiplier. In addition, one 18-by-18 complex multiplication (which decomposes into two 18-by-18 multiplication operations for each of the real and imaginary parts) can be performed. In order to support four 18-by-18 multiplication operations, the block has 4×(18+18)=144 inputs. Similarly, the output of an 18-by-18 multiplication is 36 bits wide, so to support the output of four such multiplication operations, the block also has 36×4=144 outputs.

The arithmetic operations to be performed by a PLD frequently are floating point operations. However, to the extent that known PLDs, with or without DSP blocks or other specialized blocks or structures, including the aforementioned STRATIX® PLDs, can perform floating point operations at all, they operate in accordance with the IEEE754-1985 standard, which requires that values be normalized at all times because the standard implies a leading “1”. However, normalization is expensive in terms of device area as well as operational latency.

SUMMARY OF THE INVENTION

The present invention relates to PLDs having improved floating point operation capabilities. In particular, the present invention carries out floating point operations with sufficient normalization to prevent overflow or underflow of the result. In some cases, that may mean that there is no normalization, which, as long as the result can be trusted—i.e., as long as it does not overflow or underflow or otherwise result in a loss of precision—is the most efficient mode of operation. In other cases, normalization to the full requirements of the IEEE754-1985 standard may be performed because that is the only way to prevent overflow or underflow or other loss of precision. In intermediate cases, greater or lesser degrees of normalization may be carried out. In any case, the final result is typically normalized for IEEE754-1985 compliance before it is output, because most external devices expect the result in that format.

Therefore, in accordance with the present invention, there is provided a method of configuring a programmable integrated circuit device to perform a floating point multiplication operation on multiplicand input values each formatted with a respective input mantissa/exponent pair, to provide an output value formatted with an output mantissa/exponent pair. The method includes configuring logic of the programmable integrated circuit device to examine the values to determine likelihood of overflow/underflow of the multiplication operation, and configuring logic of the programmable integrated circuit device to, based on that likelihood, adjust one of (a) at least one of the respective input mantissa and input exponent, and (b) the output mantissa and output exponent, to prevent overflow/underflow of the multiplication operation.

A programmable logic device so configured, and a machine-readable data storage medium encoded with software for performing the method, are also provided.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other objects and advantages of the invention will be apparent upon consideration of the following detailed description, taken in conjunction with the accompanying drawings, in which like reference characters refer to like parts throughout, and in which:

FIG. 1 is an example of a normalization configuration and method according to one embodiment of the present invention;

FIG. 2 is an example of a normalization configuration and method according to another embodiment of the present invention;

FIG. 3 is an example of a normalization configuration and method according to another embodiment of the present invention;

FIG. 4 is an example of a normalization configuration and method according to another embodiment of the present invention;

FIG. 5 is an example of a normalization configuration and method according to another embodiment of the present invention;

FIG. 6 is a cross-sectional view of a magnetic data storage medium encoded with a set of machine-executable instructions for performing the method according to the present invention;

FIG. 7 is a cross-sectional view of an optically readable data storage medium encoded with a set of machine executable instructions for performing the method according to the present invention; and

FIG. 8 is a simplified block diagram of an illustrative system employing a programmable logic device incorporating the present invention.

DETAILED DESCRIPTION OF THE INVENTION

Floating point numbers are commonplace for representing real numbers in scientific notation in computing systems. Examples of real numbers in scientific notation are:

-   -   3.14159265₁₀×10° (π)     -   2.718281828₁₀×10° (e)     -   0.000000001₁₀ or 1.0₁₀×10⁻⁹ (seconds in a nanosecond)     -   3155760000₁₀ or 3.15576₁₀×10⁹ (seconds in a century)

The first two examples are real numbers in the range of the lower integers, the third example represents a very small fraction, and the fourth example represents a very large integer. Floating point numbers in computing systems are designed to cover the large numeric range and diverse precision requirements shown in these examples. Fixed point number systems have a very limited window of representation which prevents them from representing very large or very small numbers simultaneously. The position of the notional binary-point in fixed point numbers addresses this numeric range problem to a certain extent but does so at the expense of precision. With a floating point number the window of representation can move, which allows the appropriate amount of precision for the scale of the number.

Floating point representation is generally preferred over fixed point representation in computing systems because it permits an ideal balance of numeric range and precision. However, floating point representation requires more complex implementation compared to fixed point representation.

The IEEE754-1985 standard is commonly used for floating point numbers. A floating point number includes three different parts: the sign of the number, its mantissa and its exponent. Each of these parts may be represented by a binary number and, in the IEEE754-1985 format, have the following bit sizes:

Sign Exponent Bias Mantissa Single 1 bit  8 bits  −127 23 bits Precision [31] [30 . . . 23] [22 . . . 00] 32-Bit Double 1 bit 11 bits −1023 52 bits Precision [63] [62 . . . 52] [51 . . . 0] 64-Bit

The exponent preferably is an unsigned binary number which, for the single precision format, ranges from 0 to 255. In order to represent a very small number, it is necessary to use negative exponents. To achieve this the exponent preferably has a negative bias associated with it. For single-precision numbers, the bias preferably is −127. For example a value of 140 for the exponent actually represents (140−127)=13, and a value of 100 represents (100−127)=−27. For double precision numbers, the exponent bias preferably is −1023.

As discussed above, according to the standard, the mantissa is a normalized number—i.e., it has no leading zeroes and represents the precision component of a floating point number. Because the mantissa is stored in binary format, the leading bit can either be a 0 or a 1, but for a normalized number it will always be a 1. Therefore, in a system where numbers are always normalized, the leading bit need not be stored and can be implied, effectively giving the mantissa one extra bit of precision. Therefore, in single precision format, the mantissa typically includes 24 bits of precision.

However, the IEEE754-1985 standard requires continuous normalization—i.e., normalization after every step of a multistep computation—to maintain the leading “1” to preserve accuracy. This is expensive in terms of PLD resources, as each normalization operation requires two steps—(1) finding the position of the “1”, and (2) shifting the fractional part to get a leading “1” (which is then eliminated, because it is implied).

Copending, commonly-assigned U.S. patent application Ser. No. 11/625,655, filed Jan. 22, 2007, the contents of which are hereby incorporated by reference herein in their entirety, discloses a method of performing floating point operations without an implied leading “1”, so that normalization is not required. The results are normalized only for output to outside devices that expect numbers according to the IEEE754-1985 standard. However, as disclosed in the aforementioned application, normalization may be required at some intermediate steps to prevent loss of data. The present invention provides a way to perform that intermediate normalization without necessarily normalizing to the IEEE754-1985 standard. Instead, only as much normalization as is required to prevent loss of data might be performed.

As mentioned above, normalization may not be required after every operation. For example, in an adder tree, the dynamic range of the mantissa can increase, but only by a maximum of one bit position per addition or subtraction operation. Therefore, the risk of overflow or underflow in addition or subtraction operations is small.

In multiplication, the effect of wordgrowth is much larger than in addition, as the wordgrowth is the sum of the wordgrowth of the inputs. For example, if the inputs to an operation are 8 and 8 (wordgrowth of 3 bits over the original 1.0), the maximum result of an addition is 16 (wordgrowth of 4 bits), while the maximum result for a multiplication is 64 (wordgrowth of 6 bits).

Nevertheless, even when two numbers are multiplied together, it may not be necessary that they be normalized. For example, the multiplier sizes natively supported by some PLDs (such as the 36-by-36 multipliers of the aforementioned STRATIX® family) are much larger than the mantissa sizes for single precision IEEE754-1985 floating point operations, which are 24-by-24. Therefore, significant overflow and underflow space can be provided.

For example, for an IEEE754-1985 input having 23 mantissa bits, four overflow bits and seven underflow bits can be provided in a 36-bit representation, as follows: one sign bit, four overflow bits, one bit to make the implied leading “1” explicit, followed by 23 bits of the original mantissa data, leaving seven bits for underflow.

The result will be displaced from the original decimal place by the sum of the displacements of the inputs. For example, “001XX.XX . . . XX”×“001XX.XX . . . XX” will generate at least 1XXXX.XX, which is an overflow. This can happen very quickly. For a normalized number, the maximum value is 1.999 . . . 999₁₀. Adding two numbers together can generate a maximum of 3.999 . . . 9999₁₀. Multiplying two numbers that are the sum of two other numbers each can generate a maximum of 15.99999₁₀. If the total number of unnormalized inputs to a multiplier is less than six, then the maximum output of the multiplier is 31.99 . . . 99₁₀, which can be accommodated by the overflow bits. Of course, underflow can happen at the same rate, so it is possible that the precision of the number can decrease rapidly as well.

In a method according to the invention for configuring a programmable logic device to perform floating point operations, the programmable logic device may be configured to determine whether normalization is needed by examining whether overflow or underflow is possible in a datapath. One way of making such a determination is to examine the possible wordgrowth in the datapath assuming extremes of the possible inputs to the datapath. Another way of making such a determination is to examine the particular inputs to the datapath. Both techniques may be used in accordance with the invention.

In the discussion below of the latter technique, reference will be made to a “count-leading-zeroes” (“CLZ”) circuit or function. This function is used to find the first significant digit. Although referred to as “count leading zeroes,” it may also count leading ones, such as in the case of signed numbers where the number is negative, in which case the first “0” is found. The number can then be normalized by left shifting it by the number of leading “zeros” (which may be ones or zeroes as just discussed)—i.e., by the index of the first significant bit. The result of normalizing based on the CLZ count may or may not be the same as IEEE754-1985 normalization.

The examples that follow illustrate how normalization may be performed by a programmable integrated circuit device, such as a PLD, configured in accordance with embodiments of the invention.

In a first example, not shown in a drawing, the device is configured so that normalization is not performed on an input to a multiplier if the cluster feeding the multiplier cannot overflow the multiplier. For example, in the case of a numeric format as described above having four overflow bits, if the total number of sums in the two multiplier inputs is five or fewer, no normalization is required. It will be understood that if a different number of overflow bits is provided, the number of additions that allowed to be present in the input cluster before normalization is required should be adjusted accordingly.

In a second example, illustrated in FIG. 1, the device is configured so that the mantissa of each input 11, 12 to multiplier 10 is normalized at 13. While the IEEE754-1985 format may be used, it is not required (i.e., there need not be an implied leading “1”). The only requirement for this example is that the mantissa be less than 2. The numerical format need not, but may, include overflow bits. CLZ function 14 (which may be implemented as a circuit in the programmed device) is used to find the index of the first significant bit in operand 11 or 12, and that index is used by left-shift circuit/function 15 to left-shift the mantissa. The exponent is adjusted by subtracting the mantissa shift (i.e., the CLZ index value) at 16. The mantissa optionally may be rounded at 17.

In a third example, illustrated in FIG. 2 for only one multiplier input (but used for both inputs), the device is configured so that normalization 20 includes checking at CLZ 21 for non-zero overflow bits (e.g., bits 36 . . . 33 in a 36-bit number). If there are overflow bits, then the number is right-shifted at 22 and the appropriate adjustment of the exponent is made at 23. If there are no overflow bits, then the number is smaller than 1.99₁₀ and no normalization is required, and normalization is bypassed at 200. However, in this case, optionally a local underflow check may made at CLZ 24 of the bits (e.g., bits 32 . . . 29 in a 36-bit number) immediately to the right of the decimal point (not a check of the underflow bits—e.g., bits 7 . . . 1—of the mantissa representation as described above). If those bits are all zeroes, then loss of precision could occur, and therefore the number may be left-shifted at 25 and the appropriate adjustment of the exponent may be made at 23.

In a fourth example, illustrated in FIG. 3, the device is configured so that normalization 30 includes normalization 20 of FIG. 2, except that a further check 31 is made to see if the input is very small. Although the degree of smallness may be programmable by the user at the time of programmable device configuration, generally the degree of smallness that would trigger this further option is that entire upper half of the mantissa is zeroes. In such a case, the contribution of this number to the product of multiplier 32 would result in a zero output, resulting in a loss of all precision from this input. To avoid such a loss of precision, if CLZ 33 determines that the input is that small—i.e., that it includes only zeroes in the upper half of the mantissa—then the mantissa can be set to “1” at multiplexer 36 and the exponent adjusted at 34 by the position, in the unnormalized mantissa, of the first significant bit as determined by CLZ 35. This may at least preserve the order of magnitude of the input in computing multiplication 32.

A fifth example (not illustrated) is a variant of the fourth example, except that instead of checking for underflow on a bit-by-bit basis, groups of a small number of bits (e.g., 4-6 bits), as programmed by the user, are checked (as, e.g., by ORing the bits in the group) until a group that contains non-zero bits is found. When a non-zero group is found, the number is normalized to a place in that group—e.g., to the center of the group. This will preserve the magnitude of the input to within at least a few places. In this case, full precision will probably be maintained in the final result in embodiments, such as the 36-bit embodiment described above, in which the internal mantissa is much larger than the IEEE754-1985 mantissa.

Devices configured according to the remaining examples normalize the output, rather than the inputs. This may cut the required normalization circuitry or logic approximately in half. Thus, in these examples, shown in FIGS. 4 and 5, assuming that the inputs to multiplier 40, 50 have been treated so that there cannot be an overflow, underflow can be detected on the output.

In the example shown in FIG. 4, the device is configured so that a “coarse” normalization similar to that of FIG. 3 is used. Specifically, groups of output bits are examined at CLZ 41, starting at the most significant bits, until a non-zero group is found, and the output is shifted to a place somewhere in that group (e.g., at or near the center of the group). In the embodiment shown, the shifting is performed by using multiplexer 42 to select a range of bits under the control of the output of CLZ 41, but a conventional shifting circuit could be used as in the examples above (and this multiplexer embodiment could be used in those examples instead of a shifting circuit). The exponent is adjusted accordingly (not shown).

In the example shown in FIG. 5, the device is configured so that CLZ 51 and CLZ 52 are used to determine the locations of the first significant bit in each input 501, 502 to multiplier 50, which allows one to predict the location of the first significant bit in output 503. CLZ 51 and CLZ 52 could check for significant bits on either a bit-by-bit basis as in the first four examples above, or on a group basis (with any size group as may be programmed by the user) as in the latter two examples above. Again, in the embodiment shown, the shifting is performed by using multiplexer 54 to select a range of bits under the control of the output of CLZ 51 and CLZ 52 as combined at 53, but a conventional shifting circuit could be used. The exponent is adjusted accordingly (not shown).

Thus, the method of the invention configures a programmable integrated circuit device, such as a PLD, to examine the values (either input values or output values) associated with a multiplication operation in a programmable integrated circuit device and to adjust either the input or output values accordingly to prevent overflow. A device configured in accordance with the method can examine and adjust the input values, examine and adjust the output value, or examine the input values and adjust the output value.

The adjustment may be the same as normalizing to a standard such as the IEEE754-1985 standard, but need not be, and will depend on the CLZ count when the values are examined. It will be apparent that the adjustment is least likely to be same as normalization when the examination and/or adjustment of the values is carried out on a groups-of-bits basis rather than a bit-by-bit basis.

Instructions for carrying out the method according to this invention may be encoded on a machine-readable medium, to be executed by a suitable computer or similar device to implement the method of the invention for programming or configuring programmable integrated circuit devices to perform operations as described above. For example, a personal computer may be equipped with an interface to which a programmable integrated circuit device can be connected, and the personal computer can be used by a user to program the programmable integrated circuit device using a suitable software tool, such as the QUARTUS® II software available from Altera Corporation, of San Jose, Calif.

FIG. 6 presents a cross section of a magnetic data storage medium 600 which can be encoded with a machine executable program that can be carried out by systems such as the aforementioned personal computer, or other computer or similar device. Medium 600 can be a floppy diskette or hard disk, or magnetic tape, having a suitable substrate 601, which may be conventional, and a suitable coating 602, which may be conventional, on one or both sides, containing magnetic domains (not visible) whose polarity or orientation can be altered magnetically. Except in the case where it is magnetic tape, medium 600 may also have an opening (not shown) for receiving the spindle of a disk drive or other data storage device.

The magnetic domains of coating 602 of medium 600 are polarized or oriented so as to encode, in manner which may be conventional, a machine-executable program, for execution by a programming system such as a personal computer or other computer or similar system, having a socket or peripheral attachment into which the PLD to be programmed may be inserted, to configure appropriate portions of the PLD, including its specialized processing blocks, if any, in accordance with the invention.

FIG. 7 shows a cross section of an optically-readable data storage medium 700 which also can be encoded with such a machine-executable program, which can be carried out by systems such as the aforementioned personal computer, or other computer or similar device. Medium 700 can be a conventional compact disk read only memory (CD-ROM) or digital video disk read only memory (DVD-ROM) or a rewriteable medium such as a CD-R, CD-RW, DVD-R, DVD-RW, DVD+R, DVD+RW, or DVD-RAM or a magneto-optical disk which is optically readable and magneto-optically rewriteable. Medium 700 preferably has a suitable substrate 701, which may be conventional, and a suitable coating 702, which may be conventional, usually on one or both sides of substrate 701.

In the case of a CD-based or DVD-based medium, as is well known, coating 702 is reflective and is impressed with a plurality of pits 703, arranged on one or more layers, to encode the machine-executable program. The arrangement of pits is read by reflecting laser light off the surface of coating 702. A protective coating 704, which preferably is substantially transparent, is provided on top of coating 702.

In the case of magneto-optical disk, as is well known, coating 702 has no pits 703, but has a plurality of magnetic domains whose polarity or orientation can be changed magnetically when heated above a certain temperature, as by a laser (not shown). The orientation of the domains can be read by measuring the polarization of laser light reflected from coating 702. The arrangement of the domains encodes the program as described above.

Thus it is seen that a method for normalizing floating point operations, a programmable integrated circuit device programmed to perform the method, and software for carrying out the programming, have been provided.

A PLD 90 programmed according to the present invention may be used in many kinds of electronic devices. One possible use is in a data processing system 900 shown in FIG. 8. Data processing system 900 may include one or more of the following components: a processor 901; memory 902; I/O circuitry 903; and peripheral devices 904. These components are coupled together by a system bus 905 and are populated on a circuit board 906 which is contained in an end-user system 907.

System 900 can be used in a wide variety of applications, such as computer networking, data networking, instrumentation, video processing, digital signal processing, or any other application where the advantage of using programmable or reprogrammable logic is desirable. PLD 90 can be used to perform a variety of different logic functions. For example, PLD 90 can be configured as a processor or controller that works in cooperation with processor 901. PLD 90 may also be used as an arbiter for arbitrating access to a shared resources in system 900. In yet another example, PLD 90 can be configured as an interface between processor 901 and one of the other components in system 900. It should be noted that system 900 is only exemplary, and that the true scope and spirit of the invention should be indicated by the following claims.

Various technologies can be used to implement PLDs 90 as described above and incorporating this invention.

It will be understood that the foregoing is only illustrative of the principles of the invention, and that various modifications can be made by those skilled in the art without departing from the scope and spirit of the invention. For example, the various elements of this invention can be provided on a programmable integrated circuit device in any desired number and/or arrangement. One skilled in the art will appreciate that the present invention can be practiced by other than the described embodiments, which are presented for purposes of illustration and not of limitation, and the present invention is limited only by the claims that follow. 

What is claimed is:
 1. A method of configuring a programmable integrated circuit device to perform a floating point multiplication operation on multiplicand input values to provide an output value, said method comprising: configuring logic of said programmable integrated circuit device to examine said values to determine likelihood of overflow/underflow of said multiplication operation; and configuring logic of said programmable integrated circuit device to, based on said likelihood, adjust at least one of said values to prevent overflow/underflow of said multiplication operation.
 2. The method of claim 1 wherein: said multiplicand input values have a number of overflow bits; said configuring logic of said programmable integrated circuit device to examine said values to determine likelihood of overflow/underflow of said multiplication operation comprises configuring said logic to compare said number of overflow bits to a number of adder stages feeding each said multiplicand input; and said configuring logic of said programmable integrated circuit device to, based on said likelihood, adjust said at least one said values to prevent overflow/underflow of said multiplication operation, comprises configuring said logic to, when said number of adder stages exceeds said number of overflow bits, shift a mantissa of at least one of said multiplicand input values and adjust a respective exponent of said at least one of said multiplicand input values accordingly.
 3. The method of claim 1 wherein: said configuring logic of said programmable integrated circuit device to examine said values to determine likelihood of overflow/underflow of said multiplication operation comprises configuring said logic to count bits to a first significant bit in each of said multiplicand input values to provide a respective bit count; and said configuring logic of said programmable integrated circuit device to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation, comprises configuring said logic to shift a respective mantissa of at least one of said multiplicand input values by said respective bit count and adjust a respective input exponent of said at least one of said multiplicand input values accordingly.
 4. The method of claim 1 wherein: said configuring logic of said programmable integrated circuit device to examine said values to determine likelihood of overflow/underflow of said multiplication operation comprises configuring said logic to count bits to a first significant bit in each of said multiplicand input values to provide a respective bit count; and said configuring logic of said programmable integrated circuit device to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation, comprises configuring said logic to shift a mantissa of said output value by a sum of said respective bit counts and adjust an exponent of said output value accordingly.
 5. The method of claim 1 wherein: said configuring logic of said programmable integrated circuit device to examine said values comprises configuring said logic to count bits to a first significant bit in said output value to provide a bit count; and said configuring logic of said programmable integrated circuit device to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation, comprises configuring said logic to shift a mantissa of said output value by said bit count and adjust an exponent of said output value accordingly.
 6. The method of claim 1 wherein: said configuring logic of said programmable integrated circuit device to examine said values comprises configuring said logic to examine said values bit-by-bit; and said configuring logic of said programmable integrated circuit device to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation, comprises configuring said logic to make bit-by-bit adjustments.
 7. The method of claim 1 wherein: said configuring logic of said programmable integrated circuit device to examine said values comprises configuring said logic to examine said values by groups of bits; and configuring logic of said programmable integrated circuit device to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation, comprises configuring said logic to make adjustments by groups of bits.
 8. A programmable integrated circuit device configured to perform a floating point multiplication operation on multiplicand input values to provide an output value, said configured programmable logic device comprising: logic configured to examine said values to determine likelihood of overflow/underflow of said multiplication operation; and logic configured to, based on said likelihood, adjust at least one of said values to prevent overflow/underflow of said multiplication operation.
 9. The programmable integrated circuit device of claim 8 wherein: said multiplicand input values have a number of overflow bits; said logic configured to examine said values to determine likelihood of overflow/underflow of said multiplication operation is configured to compare said number of overflow bits to a number of adder stages feeding each said multiplicand input; and said logic configured to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation is configured to, when said number of adder stages exceeds said number of overflow bits, shift a mantissa of at least one of said multiplicand input values and adjust a respective exponent of said at least one of said multiplicand input values accordingly.
 10. The programmable integrated circuit device of claim 8 wherein: said logic configured to examine said values is configured to count bits to a first significant bit in each of said multiplicand input values to provide a respective bit count; and said logic configured to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation, is configured to shift a mantissa of at least one of said multiplicand input values by said respective bit count and adjust a respective exponent of said at least one of said multiplicand input values accordingly.
 11. The programmable integrated circuit device of claim 8 wherein: said logic configured to examine said values to determine likelihood of overflow/underflow of said multiplication operation is configured to count bits to a first significant bit in each of said multiplicand input values to provide a respective bit count; and said logic configured to, based on said likelihood, adjust said one of said values to prevent overflow/underflow of said multiplication operation, is configured to shift said a mantissa of said output value by a sum of said respective bit counts and adjust an exponent of said output value accordingly.
 12. The programmable integrated circuit device of claim 8 wherein: said logic configured to examine said values is configured to count bits to a first significant bit in said output value to provide a bit count; and said logic configured to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation, is configured to shift a mantissa of said output value by said bit count and adjust an exponent of said output value accordingly.
 13. The programmable integrated circuit device of claim 8 wherein: said logic configured to examine said values is configured to examine said values bit-by-bit; and said logic configured to adjust said at least one of said values to prevent overflow/underflow is configured to make bit-by-bit adjustments.
 14. The programmable integrated circuit device of claim 8 wherein: said logic configured to examine said values is configured to examine said values by groups of bits; and said logic configured to adjust said at least one of said values is configured to make adjustments by groups of bits.
 15. A non-transitory machine-readable data storage medium encoded with machine-executable instructions for configuring a programmable integrated circuit device to perform a floating point multiplication operation on multiplicand input values to provide an output value, said instructions comprising: instructions to configure logic of said programmable integrated circuit device to examine said values to determine likelihood of overflow/underflow of said multiplication operation; and instructions to configure logic of said programmable integrated circuit device to, based on said likelihood, adjust at least one of said values to prevent overflow/underflow of said multiplication operation.
 16. The non-transitory machine-readable data storage medium of claim 15 wherein: said multiplicand values have a number of overflow bits; said instructions to configure logic of said programmable integrated circuit device to examine said values to determine likelihood of overflow/underflow of said multiplication operation comprise instructions to configure said logic to compare said number of overflow bits to a number of adder stages feeding each said multiplicand input; and said instructions to configure logic of said programmable integrated circuit device to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation, comprise instructions to configure said logic to, when said number of adder stages exceeds said number of overflow bits, shift a mantissa of at least one of said multiplicand input values and adjust a respective exponent of said at least one of said multiplicand input values accordingly.
 17. The non-transitory machine-readable data storage medium of claim 15 wherein: said instructions to configure logic of said programmable integrated circuit device to examine said values to determine likelihood of overflow/underflow of said multiplication operation comprise instructions to configure said logic to count bits to a first significant bit in each of said multiplicand input values to provide a respective bit count; and said instructions to configure logic of said programmable integrated circuit device to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation, comprise instructions to configure said logic to shift a mantissa of at least one of said multiplicand input values and adjust a respective exponent of said at least one of said multiplicand input values accordingly.
 18. The non-transitory machine-readable data storage medium of claim 15 wherein: said instructions to configure logic of said programmable integrated circuit device to examine said values to determine likelihood of overflow/underflow of said multiplication operation comprise instructions to configure said logic to count bits to a first significant bit in each of said multiplicand input values to provide a respective bit count; and said instructions to configure logic of said programmable integrated circuit device to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation, comprise instructions to configure said logic to shift a mantissa of said output value by a sum of said respective bit counts and adjust an exponent of said output value accordingly.
 19. The non-transitory machine-readable data storage medium of claim 15 wherein: said instructions to configure logic of said programmable integrated circuit device to examine said values to determine likelihood of overflow/underflow of said multiplication operation comprise instructions to configure said logic to count bits to a first significant bit in said output value to provide a bit count; and said instructions to configure logic of said programmable integrated circuit device to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation, comprises configuring said logic to shift a mantissa of said output value by said bit count and adjust an exponent of said output value accordingly.
 20. The non-transitory machine-readable data storage medium of claim 15 wherein: said instructions to configure logic of said programmable integrated circuit device to examine said values comprises a respective one of (a) configuring said logic to examine said values bit-by-bit, or (b) configuring said logic to examine said values by groups of bits; and said configuring logic of said programmable integrated circuit device to, based on said likelihood, adjust said at least one of said values to prevent overflow/underflow of said multiplication operation, comprises a respective one of (a) configuring said logic to make bit-by-bit adjustments, or (b) configuring said logic to make adjustments by groups of bits. 